package game.players.states;

import game.ball.Possessed;
import game.ball.SoccerBall;
import game.players.SoccerPlayer;

import com.uqbar.vainilla.DeltaState;

public class CPUOppWithoutBall extends WithoutBall {

	public CPUOppWithoutBall(SoccerPlayer player) {
		super(player);
	}

	@Override
	public void update(DeltaState deltaState) {
		//TODO INTELIGENCIA ARTIFICIAL
		this.checkBallCollides();
	}

	@Override
	public void changeBallPlayerStates(SoccerBall ball, SoccerPlayer player) {
		ball.setState(new Possessed(ball, player));
		player.setState(new CPUOppWithoutBall(player));
	}

}
